package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.Result;
import com.lxm.entity.Cart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 购物车表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface CartService extends IService<Cart> {

    @Transactional
    Result queryCartList();

    @Transactional
    Result addCart(Long cartInfo, Integer buyNum);

    @Transactional
    Result deleteItem(List cartIds);

    @Transactional
    Result updateItemNum(Long cartId, Integer buyNum);
}
